package com.txy.test.infrastructure;

import com.txy.infrastructure.persistent.dao.IStrategyRuleDao;
import com.txy.infrastructure.persistent.po.StrategyRule;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class StrategyRuleDaoTest {
    @Resource
    private IStrategyRuleDao strategyRuleDao;

    @Test
    public void queryStrategyRuleValue_test() {
        StrategyRule strategyRule = new StrategyRule();
        strategyRule.setStrategyId(100001L);
        strategyRule.setRuleModel("rule_blacklist");
        String strategyRuleValue = strategyRuleDao.queryStrategyRuleValue(strategyRule);
        log.info(strategyRuleValue);
    }
}
